<?php
@include_once("commonFunctions.php");
$tt = new TT($_SESSION['ttid']);
$nextStatus = $_SESSION['nextStatus'];
?>
<!DOCTYPE HTML>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <link rel="stylesheet" type="text/css" href="CSS/formStyle.css" />
        <script type="text/javascript" src="JavaScript/showTickets_history_ajax.js"></script>
	<script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script>
	<script type="text/javascript" src="http://dev.jquery.com/view/trunk/plugins/validate/jquery.validate.js"></script>
	<script type="text/javascript" src="JavaScript/validator.js"></script>
        <title>TTS - Updating Status For Ticket # <?php $tt->id ?></title>
    </head>
    <body onload="disable(); ">
        <div id="logo">
		<img src="logo.png" />
   	</div>
    	<div id="menu">
		<a href="index.php" class="menuitem">Login</a>
		<a href="main.php" class="menuitem">View Tickets</a>
		<a href="submitNewTT.php" class="menuitem">Submit New Ticket</a>
		<p id="districtname">South Georgia</p>
    	</div>
	<div id="infobox" class="gradient">
		<div id="infotext">
			<h3>Update ticket status</h3>
			<p>This page allows you to update the status of a submitted troublt ticket.</p>
		</div>
	</div>
        <div id="header">
            <?php tts_getheader(); ?>
        </div>
        <a href="javascript:history.go(-1)" class="goback">Go Back</a>
		<div id="updateformcontainer">
                <form name="updateform" id="updateform" class="updateform" action="JavaScript/phpHandlers/updateStatus.php" method="post" >
		    <table>
		    <tr>
		    <td>
                    <label for="dealerCode">Modified By:</label>
		    </td>
		    <td>
                    <p style="float:right;"><?php echo $dealer->dealerCode ?></p>
		    </td>
	 	    </tr>
		    <tr>
		    <td>
                    <label for="dateTime">Date/Time Modified:</label>
		    </td>
		    <td colspan="2">
                    <label id="dateTime"><font color="black"><?php echo tts_DateTimeNow(); ?></font></label>
		    </td>
		    </tr>
		    <tr>
		    <td>
                    <label for="notes">Notes:</label>
		    </td>
		    </tr>
		    <tr>
		    <td colspan="2">
		    <div>
                    <textarea rows="4" cols="40" id="notes" name="notes"> </textarea>
		    <p id="fieldLength"></p>
		    </div>
 		    </td>
		    </tr>
		    <tr>
		    <td>
                    <label for="nextStatus">Next Status:</label>
		    </td>
		    <td>
                    <label id="nextStatus"><?php echo $nextStatus; ?></label>
		    </td>
		    </tr>
		    <tr>
		    <td colspan="2">
                    <input type="submit" value="Update Ticket Status Now" class="submit"/>
		    </td>
		    </tr>
		    </table>
            </form>
	    </div>
	    <div class="push"></div>
    </body>
</html>
